import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {DemoNgZorroAntdModule} from '../../NG-ZORRO/ng-zorro-antd.module';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {NzIconModule} from 'ng-zorro-antd/icon';
import {AlertFill} from '@ant-design/icons-angular/icons';
import {sharedModule} from '../../sharedModule/shared.module';

import { IconDefinition } from '@ant-design/icons-angular';
const icons: IconDefinition[] = [AlertFill];
import { AdvertisementStatusPipe, AgentApplyStatusPipe, UnionPayDeveloperStatusPipe, UnionPayMerchantStatusPipe } from './cooperation-manage.pipe';

import {CooperationAppComponent} from './cooperation-app/cooperation-app.component';
import {CooperationRoutingModule} from './cooperation-routing.module';
import { CooperationCompanyComponent } from './cooperation-company/cooperation-company.component';
import { CooperationCooperationComponent } from './cooperation-cooperation/cooperation-cooperation.component';
import { CooperationDataComponent } from './cooperation-data/cooperation-data.component';
import { AdvertisingAgencyUserComponent } from './advertising-agency-manage/advertising-agency-user/advertising-agency-user.component';
import { AdvertisingAgencyApplyComponent } from './advertising-agency-manage/advertising-agency-apply/advertising-agency-apply.component';
import { CooperationDeveloperListComponent } from './unionPay-manage/cooperation-developer-list/cooperation-developer-list.component';
import { CooperationDeveloperInfosComponent } from './unionPay-manage/cooperation-developer-infos/cooperation-developer-infos.component';
import { CooperationMerchantListComponent } from './unionPay-manage/cooperation-merchant-list/cooperation-merchant-list.component';
import { CooperationUnionpayStatisticsComponent } from './unionPay-manage/cooperation-unionpay-statistics/cooperation-unionpay-statistics.component';
import { CooperationMerchantDetailsComponent } from './unionPay-manage/cooperation-merchant-details/cooperation-merchant-details.component';

const pipeArrs = [
  AdvertisementStatusPipe,
  AgentApplyStatusPipe,
  UnionPayDeveloperStatusPipe,
  UnionPayMerchantStatusPipe
]

@NgModule({
  declarations: [
    ...pipeArrs,
    CooperationAppComponent,
    CooperationCompanyComponent,
    CooperationCooperationComponent,
    CooperationDataComponent,
    AdvertisingAgencyUserComponent,
    AdvertisingAgencyApplyComponent,
    CooperationDeveloperListComponent,
    CooperationDeveloperInfosComponent,
    CooperationMerchantListComponent,
    CooperationUnionpayStatisticsComponent,
    CooperationMerchantDetailsComponent
  ],
  imports: [
    CommonModule,
    DemoNgZorroAntdModule,
    FormsModule,
    ReactiveFormsModule,
    NzIconModule.forRoot(icons),
    sharedModule,
    CooperationRoutingModule,
  ]
})
export class CooperationModule {
}
